import request from "@/utils/request"

export default
{
  /**
   * 多条件查询医生列表
   * @param current
   * @param limit
   * @param actQuery
   */
  pageDepartmentCondition(current,limit,doctorQuery)
  {
    return request
    ({
      method:"POST",
      url:`/yy/doctor/pageConditionDoctorList/${current}/${limit}`,
      data: doctorQuery
    })
  },

  /**
   * 删除医生
   * @param id
   */
  deleteDoctorById(id)
  {
    return request({
      method: 'GET',
      url:`/yy/doctor/deleteDoctor/${id}`,
    })
  },

  /**
   * 新增医生
   * @param departmentDto
   */
  addDoctor(doctorDto)
  {
    return request({
      method: 'POST',
      url:'/yy/doctor/addDoctor',
      data:doctorDto
    })
  },

  /**
   * 修改医生
   * @param updateDoctorDto
   */
  updateDoctor(updateDoctorDto)
  {
    return request({
      method: 'POST',
      url:'/yy/doctor/updateDoctor',
      data:updateDoctorDto
    })
  },

  /**
   * 上传图片
   * @param multipartFile
   * @returns {AxiosPromise}
   */
  upLoadDepartmentImg(multipartFile)
  {
    return request({
      method: 'POST',
      url:'/yy/department/upLoadDepartmentImg',
      data:multipartFile
    })
  },

  /**
   * 上传图片
   * @param multipartFile
   * @returns {AxiosPromise}
   */
  deleteDepartmentImg(imageKey)
  {
    return request({
      method: 'POST',
      url:'/yy/department/deleteDepartmentImg',
      data:imageKey
    })
  }
}
